home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UGroupListView.h < prev    next >
Encoding:
Text File  |  1994-03-06  |  1.9 KB  |  70 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UGroupListView.h
  3.  
  4. #define __UGROUPLISTVIEW__
  5.  
  6. #ifndef __UGRIDVIEW__
  7. #include <UGridView.h>
  8. #endif
  9.  
  10. class TGroupList;
  11. class TGroupListDoc;
  12. class TGroupTree;
  13. class TGroupTracker;
  14. class TListTypeName;
  15.  
  16. #ifndef __FONTTOOLS__
  17. #include "FontTools.h"
  18. #endif
  19.  
  20. class TGroupListView : public TGridView 
  21. {
  22.     public:
  23.         pascal void DoKeyEvent(TToolboxEvent *event);
  24.         pascal void DrawRangeOfCells(GridCell startCell,
  25.                                          GridCell stopCell, const VRect &aRect);
  26.         pascal void DrawCell(GridCell aCell, const VRect &aRect);
  27.         void GetCellTextRect(GridCell aCell, CRect &r);
  28.         pascal GridViewPart IdentifyPoint(const VPoint& thePoint, GridCell& aCell);
  29.         pascal void HighlightCells(RgnHandle theCells,
  30.                                       HLState fromHL, HLState toHL);
  31.         void HighlighOneCell(GridCell aCell, HLState fromHL, HLState toHL);
  32.         void UpdateGroupStatus(const CStr255 &dotName, Boolean hasNewArticles);
  33.  
  34.         TGroupList *GetGroupList();
  35.         void UpdateList();
  36.         void AddGroup(CStr255 &name);
  37.         void DeleteGroup(short line);
  38.         void DeleteSelection();
  39.  
  40.         TGroupList *GetSelectionAsList();
  41.         void AddGroupsFromListBefore(ArrayIndex index, TGroupList *groupList);
  42.         void DeleteGroupsFromList(TGroupList *groupList);
  43.  
  44.         pascal void DoMouseCommand(VPoint &theMouse,
  45.                                        TToolboxEvent *event, CPoint hysteresis);
  46.         pascal void DoMenuCommand(CommandNumber aCommandNumber);
  47.         pascal void DoSetupMenus();
  48.         pascal void ShowReverted();
  49.  
  50.         TGroupListView();
  51.         pascal void Close();
  52.         pascal void Initialize();
  53.         pascal void ReadFields(TStream *aStream);
  54.         pascal void DoPostCreate(TDocument *itsDocument);
  55.         pascal void Free();
  56.     private:
  57.         friend class TGroupTracker;
  58.         friend class TListTypeName;
  59.         
  60.         TWindow *fWindow;
  61.         TGroupList *fGroupList;
  62.         TGroupListDoc *fDoc;
  63.         StandardGridViewTextStyle fGridViewTextStyle;
  64.         unsigned long fLastTypeKeyTick;
  65.         CStr255 fKeyTypeChars;
  66.  
  67.         void OpenSelection(Boolean updateDatabase);
  68.         void ChangedFont();
  69. };
  70.